﻿using DoNet.Bpmn.Models;
using DoNet.Core;

namespace DoNet.Bpmn.IRepostitories
{
    public interface IBpmnNodeAssignLevelConfigRepository : IRepository<BpmnNodeAssignLevelConfig>
    {
        #region 同步方法
        /// <summary>
        /// 同步根据BpmnNodeId
        /// </summary>
        /// <param name="bpmnNodeId"></param>
        /// <returns></returns>
        BpmnNodeAssignLevelConfig GetByBpmnNodeId(long bpmnNodeId);
        #endregion 同步方法

        #region 异步方法
        /// <summary>
        /// 异步根据BpmnNodeId
        /// </summary>
        /// <param name="bpmnNodeId"></param>
        /// <returns></returns>
        Task<BpmnNodeAssignLevelConfig> GetByBpmnNodeIdAsync(long bpmnNodeId);
        #endregion 异步方法
    }
}
